package com.yanqu.road.server.cmd.clinic;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.clinic.ClinicModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @author ：zfr
 * @date ：2021/3/3 14:11
 */
@Cmd(code = GameProtocol.S_CLINIC_GET_CUR_EVENT, desc = "获取当前事件详情")
public class GetCurEventCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(ClinicModule.class).getCurEventInfo();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
